package com.example.demo.niuke;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 22:52 2020/3/24
 * @Modified By:
 */

import java.io.*;

public class Main30 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int j = 0, k = 0, sum = 0;
        int n = Integer.parseInt(br.readLine());
        for (int i = 0; i < n; i++) {
            int num = Integer.parseInt(br.readLine());
            if (num < 0) {
                j++;
            } else {
                k++;
                sum += num;
            }
        }
        System.out.printf("%d %d", j, sum / k);
    }
}